package com.xymtop.api.inspector;

import com.xymtop.api.entity.Comment;
import com.xymtop.api.entity.Project;
import com.xymtop.api.service.EmailService;
import com.xymtop.api.service.ProjectService;
import com.xymtop.api.utils.Timer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

/**
 * @ClassName : ProjectIns
 * @Description : 项目巡查类
 * @Author : 肖叶茂
 * @Date: 2022/12/4  13:24
 */
@Repository
public class ProjectIns implements Ins{

//    违规词列表
    private String[] AspetList = {
            "傻逼",
            "sb",
    };

    @Override
    public Boolean startTask(List<Object> objects) {
        Boolean flag = true;
        for(Object obj : objects){
            for(String asp : AspetList){
                if(String.valueOf(obj).contains(asp)){
                    flag =  false;
                }
            }
        }
        return flag;
    }
}
